#ifndef _CMARIO_H_
#define _CMARIO_H_

#include "Object.h"

#define ACCELERATION_X 500
#define ACCELERATION_Y 3000
#define VELOCITY_X 10
#define VELOCITY_JUMP 50


enum MARIO_STATUS{
	MARIO_STAND, MARIO_RUN, MARIO_JUMP, MARIO_ON_AIR
};

class CMario : public CObject
{
private:
	MARIO_STATUS m_status;
	int m_direct;
public:
	CMario();
	void Init() ;
	void Update(float gameTime, CInput* input);
	void Draw(LPD3DXSPRITE spriteHandler, CCamera* camera);
	void UpdateAnimation(float gameTime, CInput* input);
	OBJECT_TYPE GetType();
	void SetPosition(D3DXVECTOR2 pos) { m_pos = pos; }
	void SetDirect(int i) { m_direct = i; }
	D3DXVECTOR2 GetPosition() { return m_pos; }
};

#endif